package com.hxzy.service.impl;

import com.hxzy.entity.UmsMemberReceiveAddress;
import com.hxzy.mapper.UmsMemberReceiveAddressMapper;
import com.hxzy.service.UmsMemberReceiveAddressService;
import com.hxzy.util.MybatisUtil;
import org.apache.ibatis.session.SqlSession;

public class UmsMemberReceiveAddressServiceImpl implements UmsMemberReceiveAddressService {
    @Override
    public UmsMemberReceiveAddress selectByPrimaryKey(Long id) {
        UmsMemberReceiveAddress umsMemberReceiveAddress=null;
        try (SqlSession session= MybatisUtil.getSqlSessionFactory().openSession()){
            UmsMemberReceiveAddressMapper mapper = session.getMapper(UmsMemberReceiveAddressMapper.class);
            umsMemberReceiveAddress=mapper.selectByPrimaryKey(id);
        }
        return umsMemberReceiveAddress;
    }
}
